Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace angular-cli patch with something less risky #742

Merged
merged 6 commits into from
Jun 28, 2018

Conversation

rezonant
Copy link
Contributor

@rezonant rezonant commented Jun 28, 2018

As it sounds, this replaces the super-hairy angular patch that Peertube has now with something that doesn't need to modify any external modules.

It uses Typescript's path resolution settings available in tsconfig.json's paths section. Using paths I remap all of the modules that are not available on the web. Changeset includes a trivial global polyfill and the polyfills PeerTube depends on.

All polyfills brought in with this PR are the ones Webpack uses:
https://github.com/webpack/node-libs-browser#readme

Status: In testing. A video upload and playback smoke test looks good.

@rezonant rezonant changed the title Replace angular-cli patch with something less risky [WIP] Replace angular-cli patch with something less risky Jun 28, 2018
@rezonant
Copy link
Contributor Author

Actually this is failing for final production build of the client for me.
As a sidenote, Travis should not have accepted this PR...

@rezonant rezonant changed the title [WIP] Replace angular-cli patch with something less risky Replace angular-cli patch with something less risky Jun 28, 2018
@rezonant
Copy link
Contributor Author

I was on the wrong branch :-S -- The production build succeeds with this solution.

@rezonant
Copy link
Contributor Author

did a video upload/playback test and things look to be working.

all polyfills in this PR are the ones used by webpack:
https://github.com/webpack/node-libs-browser#readme

@Chocobozzz Chocobozzz merged commit 3ea9a1c into Chocobozzz:develop Jun 28, 2018
@Chocobozzz
Copy link
Owner

Thanks @rezonant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants